<?php include_once('blocks/navigator.php');
$detail = $tc->menu_one($dt);
$row_detail = mysql_fetch_array($detail);

$content_photo = '<link rel="stylesheet" href="library/slider_pic/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<div id="photos"><ul class="gallery clearfix">';
$detail_photo = $tc->detail($row_menu_one['type_id'],$row_detail['id']);
while($row_detail_photo = mysql_fetch_array($detail_photo)){
	$content_photo .= '<li><a href="'.url_photos_image.$row_detail_photo['url_hinh'].'" rel="prettyPhoto[gallery1]" title="'.$row_detail_photo['name'].'"><img class="img" src="'.url_photos_thumb_image.$row_detail_photo['url_hinh'].'" alt="'.$row_detail_photo['name'].'" /></a></li>';
}
$content_photo .= '</ul></div><div style="clear:both; height:30px;"></div>
<script src="library/slider_pic/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">$(document).ready(function(){$(".gallery a[rel^=\'prettyPhoto\']").prettyPhoto({theme:\'facebook\'});});</script>';

$view_post .= '<div id="product_detail">
	<div id="viewpost">
		<h1>'.$row_detail['name'].'</h1>
		<h2>'.$row_detail['metaDescription'].'</h2>
		<div style="clear:both; padding-top:10px">'.$content_photo.'</div>
	</div>
</div>';